package com.gopay.common.domain.dic;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;


/**
 * @author xinj.xue
 * @description：银行返回码字典
 * @date 2017-08-01 10:28
 **/
@Entity
@Table(name = "DIC_BANK_RET_CODE")
public class DicBankRetCode extends BaseEntity {

    public static final String DEFAULT_NOT_FOUND_CODE_MSG = "未知原因";

    @Id
    @SequenceGenerator(name="DIC_BANK_RET_CODE_S", sequenceName="DIC_BANK_RET_CODE_SEQUENCE", allocationSize = 1)
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="DIC_BANK_RET_CODE_S")
    @Column(name="DIC_ID")
    private Integer dicId; // 主键
    @Column(name = "BANK_NAME")
    private String bankName; // 银行名称
    @Column(name = "BANK_ABBR")
    private String bankAbbr; // 银行英文缩写
    @Column(name = "BANK_RET_CODE")
    private String bankRetCode; // 银行返回码
    @Column(name = "CODE_MSG")
    private String codeMsg; // 返回码含义
    @Column(name = "CREATE_TS")
    private Date createTs; // 创建时间，格式： yyyyMMddHHmmss
    @Column(name = "UPDATE_TS")
    private Date updateTs; // 最后修改时间，格式： yyyyMMddHHmmss

    public Integer getDicId() {
        return dicId;
    }

    public void setDicId(Integer dicId) {
        this.dicId = dicId;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankAbbr() {
        return bankAbbr;
    }

    public void setBankAbbr(String bankAbbr) {
        this.bankAbbr = bankAbbr;
    }

    public String getBankRetCode() {
        return bankRetCode;
    }

    public void setBankRetCode(String bankRetCode) {
        this.bankRetCode = bankRetCode;
    }

    public String getCodeMsg() {
        return codeMsg;
    }

    public void setCodeMsg(String codeMsg) {
        this.codeMsg = codeMsg;
    }

    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    public Date getUpdateTs() {
        return updateTs;
    }

    public void setUpdateTs(Date updateTs) {
        this.updateTs = updateTs;
    }
}
